package com.sz.mes.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.diboot.core.util.BeanUtils;
import com.diboot.iam.mapper.IamUserMapper;
import com.sz.mes.dto.TechniqueDTO;
import com.sz.mes.entity.Technique;
import com.sz.mes.mapper.TechniqueMapper;
import com.sz.mes.service.TechniqueService;
import com.sz.mes.service.impl.BaseCustomServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 工艺相关Service实现
 *
 * @author hem
 * @version 1.0
 * @date 2023-06-12
 * Copyright © szhs
 */
@Service
@Slf4j
public class TechniqueServiceImpl extends BaseCustomServiceImpl<TechniqueMapper, Technique> implements TechniqueService {
    private final TechniqueMapper techniqueMapper;

    public TechniqueServiceImpl(TechniqueMapper techniqueMapper) {
        this.techniqueMapper = techniqueMapper;
    }

    @Override
    public List<Technique> getList(String taskNum) {
        QueryWrapper<Technique> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("task_num",taskNum);
        List<Technique> techniqueList = techniqueMapper.selectList(queryWrapper);
        return techniqueList;
        
    }
}
